﻿#include "level.h"

Level::Level():m_LevelValue(1)
{}

Level::~Level(){}

int Level::getTimer() const
{
    int timer = 1000;
    if(m_LevelValue<5)
       timer = 1050 - m_LevelValue*50;
    else
        if(m_LevelValue<10)
            timer = 800 - (m_LevelValue - 5)*40;
    else
        if(m_LevelValue<15)
            timer = 600 - (m_LevelValue - 10)*30;
    else
        timer = 450 - (m_LevelValue - 5)*20;
    if (timer <100)
        timer = 100;
    return timer;
}
